﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Default.Master" AutoEventWireup="true" CodeBehind="Premises.aspx.cs" Inherits="MockPrjTeam2.Pages.Views.Premises" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<asp:Panel ID="pnshow" runat="server">
    <table style="width: 100%; height: 35px;">
        <tr>
            <td style="width: 860px">
                <asp:LinkButton ID="LinkButton11" runat="server" onclick="LinkButton11_Click">ALL</asp:LinkButton> &nbsp;|
                <asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Click">0-9</asp:LinkButton> &nbsp;|
                <asp:LinkButton ID="LinkButton2" runat="server" onclick="LinkButton2_Click">A B C D E</asp:LinkButton> &nbsp;|
                <asp:LinkButton ID="LinkButton4" runat="server" onclick="LinkButton4_Click">F G H I J</asp:LinkButton> &nbsp;|
                <asp:LinkButton ID="LinkButton5" runat="server" onclick="LinkButton5_Click">K L M N</asp:LinkButton> &nbsp;|
                <asp:LinkButton ID="LinkButton6" runat="server" onclick="LinkButton6_Click">O P Q R</asp:LinkButton> &nbsp;|
                <asp:LinkButton ID="LinkButton7" runat="server" onclick="LinkButton7_Click">S T U V</asp:LinkButton> &nbsp;|
                <asp:LinkButton ID="LinkButton8" runat="server" onclick="LinkButton8_Click">W X Y Z</asp:LinkButton> &nbsp;|
                </td>
            <td style="width: 67px">
                <asp:LinkButton ID="LinkButton9" runat="server" onclick="LinkButton9_Click">Delete</asp:LinkButton>
                </td>
            <td style="width: 62px">
                <asp:Button ID="Button1" runat="server" Text="Create" Height="27px" 
                    onclick="Button1_Click" />
            </td>
            <td>
                &nbsp;</td>
        </tr>
    </table>
    <asp:DataGrid ID="Grid" runat="server" AutoGenerateColumns="False" 
        HorizontalAlign="Center" UseAccessibleHeader="True" AllowPaging="True" 
    CellPadding="4" ForeColor="#333333" GridLines="None" onpageindexchanged="Grid_PageIndexChanged" 
        onitemcommand="Grid_ItemCommand" PageSize="15" Width="742px">
        <AlternatingItemStyle BackColor="White" />
        <Columns>
            <asp:TemplateColumn>
            <HeaderTemplate><asp:CheckBox ID="chkselectAll" runat="server" 
                    oncheckedchanged="chkselectAll_CheckedChanged" AutoPostBack="true" /></HeaderTemplate>
            <ItemTemplate>
            <asp:CheckBox ID="chkselect" runat="server" />
            <asp:TextBox ID="txtid" runat="server" Text='<%#Eval("PremiseID").ToString() %>' Visible="false"></asp:TextBox>
            </ItemTemplate>
            </asp:TemplateColumn>
            <asp:BoundColumn DataField="LocationName" 
                HeaderText="Localtion Name" SortExpression="ProgrammeName">
            </asp:BoundColumn>
            <asp:BoundColumn DataField="AddressLine" HeaderText="AddressLine 1">
            </asp:BoundColumn>
            <asp:BoundColumn DataField="IsActive" HeaderText="IsActive"></asp:BoundColumn>
            <asp:TemplateColumn HeaderText="Chức năng">
            <ItemTemplate>
             <asp:LinkButton ID="xoa" runat="server" CommandName="xoa" CommandArgument='<%#Eval("PremiseID").ToString() %>'>Delete</asp:LinkButton>
            <asp:LinkButton ID="sua" runat="server" CommandName="Sua" CommandArgument='<%#Eval("PremiseID").ToString() %>'>Edit</asp:LinkButton>
            </ItemTemplate>
            </asp:TemplateColumn>
        </Columns>
        <EditItemStyle BackColor="#7C6F57" />
        <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
        <ItemStyle HorizontalAlign="Center" Wrap="True" BackColor="#E3EAEB" />
        <PagerStyle BackColor="#666666" ForeColor="White" HorizontalAlign="Center" 
            Mode="NumericPages" />
        <SelectedItemStyle BackColor="#C5BBAF" Font-Bold="True" ForeColor="#333333" />
    </asp:DataGrid>
    </asp:Panel>
</asp:Content>
